
#ifndef COMMON_H_H
#define	COMMON_H_H

#include <stdint.h>
#include <string.h>
#include <stdio.h>
#include "sys_com.h"
#include "dataproc.h"
#include "pulse.h"
#include "mytype.h"

#ifdef	__cplusplus
extern "C" {
#endif

#define GD25_DBG_EN      0
#define CAN_DBG_EN       0
	
#ifdef    DEBUG
#define DBG_EN           1
#else
#define DBG_EN           0
#endif


#if DBG_EN > 0
#define dbg_print          sys_printf
#define dbg_puts           sys_puts
#else
#define dbg_print(...)
#define dbg_puts(...)
#endif

#if (DBG_EN+GD25_DBG_EN) > 1
#define gd25_dbg_print          sys_printf
#define gd25_dbg_puts           sys_puts
#else
#define gd25_dbg_print(...)
#define gd25_dbg_puts(...)
#endif

#if (DBG_EN+CAN_DBG_EN) > 1
#define can_dbg_print          sys_printf
#define can_dbg_puts           sys_puts
#else
#define can_dbg_print(...)
#define can_dbg_puts(...)
#endif
	

	
	
#ifdef	__cplusplus
}
#endif

#endif	/* COMMON_H_H */
